﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SIGEB.Modelo.moduloComputadoras
{
    public class infoComputadora
    {
        #region CONSTRUCTORES

        public infoComputadora(string idInfoComp, string username, string password)
        {
            this.idInfoComp = idInfoComp;
            this.username = username;
            this.password = password;
        }

        #endregion

        #region METODOS

        public string desencriptar_password()
        {
            string a = AESEncryption.Decrypt(password, "sigeb_ic_pass");
            return a;
        }

        public string encriptar_password()
        {
            string a = AESEncryption.Encrypt(password, "sigeb_ic_pass");
            return a;
        }

        #endregion

        #region ATRIBUTOS

        private string _idInfoComp;
        private string _username;
        private string _password;

        public string idInfoComp
        {
            set { _idInfoComp = value; }
            get { return _idInfoComp; }
        }

        public string username
        {
            set { _username = value; }
            get { return _username; }
        }

        public string password
        {
            set { _password = value; }
            get { return _password; }
        }

        #endregion
    }
}
